.roleMembers() {
  display: flex;

  .roleAvatar:not(:first-child) {
    margin-left: -10px;
  }

  .roleAvatar {
    border: 1px solid #fff;
    border-radius: 50%;
  }
}

// .AppRole {
.roleWrapper {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;

  .roleList {
    flex: 1;
  }
}

.topBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding-right: 30px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
  background-color: #ffffff;
  z-index: 1;

  &Content {
    font-size: 14px;
    padding: 0 20px;
    flex: 1;

    .title {
      font-size: 18px;
      margin-right: 30px;
    }
  }
  .roleDisplayConfig {
    display: flex;
    align-items: center;
    height: 100%;
    cursor: pointer;
    span {
      margin-right: 10px;
    }
  }
  .quitApp {
    display: flex;
    align-items: center;
    margin-left: 26px;
    cursor: pointer;
    color: #9e9e9e;
    span {
      margin-left: 6px;
    }
  }
}
.applyListWrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.applyList {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 44px;
  background-color: #e7e7e7;
  border-radius: 30px;
  padding: 16px;

  &:hover {
    background-color: #e0e0e0;
  }
  .applyText {
    font-size: 13px;
    color: #757575;
    margin-left: 10px;
  }
  .applyPersonCount {
    color: #2196f3;
    margin: 0 2px;
  }
}

.roleMembers {
  .roleMembers();
}
.roleList {
  .roleListWrapper {
    width: 960px;
  }
}

.iconBG {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eaeaea;
  padding: 8px;
}

.roleDialog {
  .roleSelect {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    margin-bottom: 16px;

    :global(.Dropdown--input) {
      padding-left: 15px;
    }
  }

  .roleDialogDangerTitle {
    color: @dangerColor;
  }
}

.roleActionMenu {
  .danger {
    color: @dangerColor;
  }
}
.roleOperationBox {
  width: 32px;
  height: 32px;
  display: inline-block;
  border-radius: 50%;
  line-height: 32px;
  text-align: center;
  &:hover {
    background: #f5f5f5;
  }
}
.hideRolesDivide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 36px 0;
  .line {
    flex: 1;
    height: 1px;
    background-color: #ddd;
  }
  .divideText {
    margin: 0 20px;
    color: #9e9e9e;
  }
}
.roleTip {
  left: 432px;
  top: 103px;
  max-width: 320px;
  background-color: #333942;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: #fff;
  border-radius: 4px;
  &::after {
    content: "";
    position: absolute;
    top: -16px;
    right: 5%;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-bottom-color: #333942;
  }
}

.roleItem {
  background-color: #fff;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  border-radius: 3px;
  border: 1px solid #fff;

  &.withBorder {
    border: 2px solid @themeColor3;
  }

  &.createRole {
    padding-left: 24px;
    padding-right: 24px;
    display: flex;
    height: 80px;
    align-items: center;

    &:hover {
      .createBtn {
        span,
        i {
          color: #2196f3 !important;
        }
      }
    }

    .createBtn {
      flex: 1;
    }
  }

  .emptyContent {
    padding-top: 68px;
  }
}

.roleItemHeader {
  padding: 15px 24px;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;

  .roleInfo {
    display: flex;
    flex-flow: column nowrap;
    flex: 1 1 100%;
  }

  .roleMembers {
    .roleMembers();
  }

  .roleAction {
    flex: 0 0 auto;

    .danger {
      color: @dangerColor;
    }
  }
  .roleSettings {
    border-radius: 16px;
    height: 32px;
    line-height: 32px;
    padding: 0 12px;
    display: inline-block;
    &:hover {
      background: #f5f5f5;
    }
  }

  .roleTag {
    background: @themeColor3;
    color: #fff;
    line-height: 24px;
    display: inline-block;
    padding: 0 12px;
    border-radius: 12px;
  }
}

.roleMemberListWrapper {
  max-height: 290px;
  margin-top: -15px;
}

.roleMemberList {
  display: flex;
  flex-flow: row wrap;
  padding: 8px 20px;

  .roleMemberWrapper {
    flex: 0 0 25%;
    padding: 4px;
    box-sizing: border-box;
  }

  .roleMember {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    padding: 8px;
    height: 70px;
    border-radius: 6px;

    &.canSelect {
      cursor: pointer;

      &:hover {
        background: #f7f7f7;
        .memberCheckbox {
          visibility: visible;
        }
      }
      &.selected {
        background: #eaf6ff;
        .memberCheckbox {
          visibility: visible;
        }
      }
    }

    .memberCheckbox {
      width: 18px;
      margin-left: 8px;
      align-self: flex-start;
      visibility: hidden;
      .memberCheckboxNo {
        width: 18px;
        height: 18px;
        background: #fff;
        border: 1px solid #ccc;
        border-radius: 50%;
        display: block;
        box-sizing: border-box;
      }
    }

    .memberInfo {
      display: flex;
      flex-flow: column nowrap;
      margin-left: 8px;
      overflow: hidden;
      flex: 1;
    }

    .memberName {
      text-overflow: ellipsis;
      word-break: break-all;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      max-height: 36px;
      line-height: 18px;
    }

    .memberTag {
      font-size: 12px;

      .ownerTag {
        background: @themeColor3;
        color: #fff;
        line-height: 18px;
        display: inline-block;
        padding: 0 6px;
        border-radius: 10px;
      }
    }
  }
}
